﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.Effects
{
    class Raging : GameEffect
    {

        public Raging() : 
            base(true)
        {
            Type = EffectType.Enraged;
        }

        public override void ModifyStats(CharacterClass character)
        {

            character.Stats.AttackStat.Modify(Power);
            base.ModifyStats(character);
        }

        public override void RevertStats(CharacterClass character)
        {
            character.Stats.AttackStat.Revert( Power);
            base.RevertStats(character);
        }

        public override GameEffect GetInstance(int power)
        {
            return new Raging() { Power = power, Type = Type, IsBoost = IsBoost };
        }
    }
}
